home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
dsp
/
dsp56k
/
a56-1_0.lha
/
a56-1.0
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-08-09
|
971b
|
51 lines
########################################################
#
# a56 - a DSP56001 assembler
#
# Written by Quinn C. Jensen
# July 1990
# jensenq@npd.novell.com (or jensenq@qcj.icon.com)
#
#######################################################
LIB = -ll
OBJS = main.o gram.o lex.o tok_tab.o subs.o
#NOTE: lex.c cannot be compiled with -g. An assembler bug causes the text
# symbols to be messed up (at least on the Icon system).
CFLAGS = -g -DYYDEBUG
all: a56 toomf
a56: $(OBJS)
$(CC) $(CFLAGS) -o a56 $(OBJS) $(LIB)
lex.o: lex.yy.c lex.c gram.h
$(CC) -c lex.c
lex.yy.c: a56.l
lex -v a56.l
gram.c: a56.y
yacc a56.y
mv y.tab.c gram.c
header: ; yacc -d a56.y
mv y.tab.h gram.h
tok_tab.c: gram.h
awk -f tok.awk < gram.h > tok_tab.c
y.output: a56.y
yacc -v a56.y
toomf: toomf.o
$(CC) -o toomf $(CFLAGS) toomf.o
tape: ; tar cvbf 1 - Makefile main.c a56.y lex.c a56.l tok.awk \
a56.h qcjlib.h *.a56 | compress > a56.tar.Z
main.o gram.o lex.o: a56.h